home *** CD-ROM | disk | FTP | other *** search
- Path: csus.edu!apollo!wchow
- From: wchow@sfsu.edu (Walter Chow)
- Newsgroups: comp.lang.c++
- Subject: truncate data
- Date: 2 Feb 1996 17:55:09 GMT
- Organization: San Francisco State University
- Message-ID: <4etj5u$gde@news.csus.edu>
- NNTP-Posting-Host: wchow@apollo.sfsu.edu
- X-Newsreader: TIN [version 1.2 PL2]
-
- Hi;
-
- I wonder if there is a way I can get back the file
- descriptor from a fstream object. The purpose of
- doing so is that I want to use 'ftruncate' to
- truncate part of the data in my file. If there is
- no way to get back the file descriptor, is there a
- way I can truncate some data of a file by using C++
- technique.
-
- Appreciate.
-
- /Walter
-
-